package com.example.mapper;

import com.example.entity.UserAddress;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.vo.UserAddressVo;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author 12057
* @description 针对表【user_address】的数据库操作Mapper
* @createDate 2024-05-13 19:23:29
* @Entity com.example.entity.UserAddress
*/
public interface UserAddressMapper extends BaseMapper<UserAddress> {

    @Select("select * from user_address where user_Id = #{userId}")
    List<UserAddress> getAddressByUserId(@Param("userId") Integer userId);


    List<UserAddressVo> getByUserId(@Param("userId") Long id);


}




